//
//  AnLiCollectionViewCell.m
//  Wedding fantastic
//
//  Created by ZLM on 15/7/7.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AnLiCollectionViewCell.h"

@implementation AnLiCollectionViewCell
-(void)dealloc{
    [_nameLabel release];
    [_titleLabel release];
    [_image release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10*kWidth/375, 10*kHeight/667,140*kWidth/375,80*kHeight/667)];
        self.layer.cornerRadius = 10;
        [self.contentView addSubview:self.image];
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(10*kWidth/375, 95*kHeight/667, 140*kWidth/375, 10*kHeight/667)];
        self.titleLabel.backgroundColor = [UIColor whiteColor];
        self.titleLabel.font = [UIFont systemFontOfSize:11];
        self.titleLabel.textColor = [UIColor redColor];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel release];
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(13*kWidth/375,110*kHeight/667 , 140*kWidth/375, 10*kHeight/667)];
        self.nameLabel.textColor = [UIColor orangeColor];
        self.nameLabel.font = [UIFont systemFontOfSize:10];
        self.nameLabel.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.nameLabel];
        [self.nameLabel release];
        
        [self.image release];
        
    }
    return self;
}

@end
